﻿using Furion;
using KYDataMigrationDemo02.Core.DbContextLocator;
using Microsoft.Extensions.DependencyInjection;

namespace KYDataMigrationDemo02.EntityFramework.Core;

public class Startup : AppStartup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddDatabaseAccessor(options =>
        {
            options.AddDbPool<PostgreSqlDbContext, PostgreSqlDbContextLocator>();
        }, "KYDataMigrationDemo02.Database.Migrations");
    }
}
